<form id="addUserForm"  method="post">
<table>
<tr>
	<td>userName:</td><td><input id="userName"type="text" name="user.userName"/></td>
</tr>
<tr>
	<td>userEmail:</td><td><input id="userEmail" type="text" name="user.userEmail"/></td>
</tr>
<tr>
	<td>userPassword:</td><td><input id="password" type="password" name="user.userPassword"/></td>
</tr>
</table>
</form>
<script>
	$(function(){
		$('#addUserForm').form({
			url:'addUser.action',
			success:function(data){
				$("#test").datagrid('reload');
				alert(data);
			}
		});
	})
</script>